package com.chenyongjing.design.pattern.proxy.staticUasualProxy;

public class Client {
    public static void main(String[] args) {
        UserServiceImpl userService =new UserServiceImpl();
        userService.add();

        // 添加日志后代理
        UserServiceProxy proxy =new UserServiceProxy();
        // 代理用户服务
        proxy.setUserService(userService);
        proxy.add();

    }
}
